<template>
	<cds-config-provider :locale="lang">
		<router-view></router-view>
	</cds-config-provider>
</template>

<script setup>
// 取 cds 组件库的语言包，其包含了element-plus的相同的语言包
import zhCn from "cds-ui-base-components/dist/es/locale/zh-cn";
import en from "cds-ui-base-components/dist/es/locale/en";
import {computed, ref, provide} from "vue";
 import CdsConfigProvider from 'packages/businessComponents/cdsConfigProvider/src/cdsConfigProvider.vue'
// import {CdsConfigProvider} from 'cds-ui-business-components'
import store from "@/store";
const lang = computed(() =>{
	return store.state.lang == 'en' ? en : zhCn
})

</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin:0;
  padding:0;
  font-size: 12px;
  width:100%;
  height: 100%;
}
</style>
